/*****************************************************************************
 * img.h: GD image manipulation definitions
 *****************************************************************************
 * Copyright (C) 2010 Sam Grandjean
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *****************************************************************************/

#ifndef _LIBGMTM_IMG_H
#define _LIBGMTM_IMG_H 1

#include "gd.h"

#define JPEG_QUALITY 75

enum IMAGE_FORMAT {
	PNG = 0,
	JPEG = 1,
	GIF = 2
};

gdImagePtr load_image(const char*, const enum IMAGE_FORMAT);
int save_image(const gdImagePtr, const char*, const enum IMAGE_FORMAT);
//gdImagePtr resize_image(const gdImagePtr, const int, const int);
gdImagePtr resize_image_replace(gdImagePtr, const int, const int, const int);

#endif

